﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LTHD_Web.RSS
{
    public class ItemClass
    {
        private string title;
        private string description;
        private string link;
        private DateTime pubDate;

        #region Properties
        public DateTime PubDate
        {
            get { return pubDate; }
            set { pubDate = value; }
        }

        public string Link
        {
            get { return link; }
            set { link = value; }
        }

        public string Description
        {
            get { return description; }
            set { description = value; }
        }

        public string Title
        {
            get { return title; }
            set { title = value; }
        }
        #endregion

        public ItemClass()
        {
            this.title = "";
            this.description = "";
            this.link = "";
            this.pubDate = DateTime.Now;
        }
        public ItemClass(string title, string description, string link, DateTime pubDate)
        {
            this.title = title;
            this.description = description;
            this.link = link;
            this.pubDate = pubDate;
        }
        public ItemClass(ItemClass item)
        {
            this.title = item.title;
            this.description = item.description;
            this.link = item.link;
            this.pubDate = item.pubDate;
        }
    }
}
